package com.ruoyi.ordercheck.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ordercheck.mapper.DishMapper;
import com.ruoyi.ordercheck.domain.Dish;
import com.ruoyi.ordercheck.service.IDishService;

/**
 * 菜品审核Service业务层处理
 * 
 * @author xjf\hxs
 * @date 2022-07-07
 */
@Service
public class DishServiceImpl implements IDishService 
{
    @Autowired
    private DishMapper dishMapper;

    /**
     * 查询菜品审核
     * 
     * @param dishid 菜品审核主键
     * @return 菜品审核
     */
    @Override
    public Dish selectDishByDishid(Long dishid)
    {
        return dishMapper.selectDishByDishid(dishid);
    }

    /**
     * 查询菜品审核列表
     * 
     * @param dish 菜品审核
     * @return 菜品审核
     */
    @Override
    public List<Dish> selectDishList(Dish dish)
    {
        return dishMapper.selectDishList(dish);
    }

    /**
     * 新增菜品审核
     * 
     * @param dish 菜品审核
     * @return 结果
     */
    @Override
    public int insertDish(Dish dish)
    {
        return dishMapper.insertDish(dish);
    }

    /**
     * 修改菜品审核
     * 
     * @param dish 菜品审核
     * @return 结果
     */
    @Override
    public int updateDish(Dish dish)
    {
        return dishMapper.updateDish(dish);
    }

    /**
     * 通过菜品审核
     *
     * @param dishid 活动审核主键
     * @return 结果
     */
    @Override
    public int passDishByDishid(Long dishid)
    {
        return dishMapper.passDishByDishid(dishid);
    }

    /**
     * 批量删除菜品审核
     * 
     * @param dishids 需要删除的菜品审核主键
     * @return 结果
     */
    @Override
    public int deleteDishByDishids(Long[] dishids)
    {
        return dishMapper.deleteDishByDishids(dishids);
    }

    /**
     * 删除菜品审核信息
     * 
     * @param dishid 菜品审核主键
     * @return 结果
     */
    @Override
    public int deleteDishByDishid(Long dishid)
    {
        return dishMapper.deleteDishByDishid(dishid);
    }
}
